import request from '@/utils/request'

export function orderSeat(data) {
    return request({
        url: '/sr/seatOrder/orderSeat',
        method: 'post',
        data: data
    })
}

/**
 * 获取用户账户拥有的优惠卡
 * @param {} params 
 */
export function orderList(data) {
  return request({
    url: '/sr/seatOrder/orderList',
    method: 'get',
	data: data
  })
}

/**
 * 获取用户账户拥有的优惠卡
 * @param {} params 
 */
export function orderPaidList(data) {
  return request({
    url: '/sr/seatOrder/orderPaidList',
    method: 'get',
	data: data
  })
}

// 查询门店详情详细
export function orderSeatConsumed(orderId) {
	return request({
		url: '/sr/seatOrder/consumed/' + orderId,
		method: 'get'
	})
}

export function orderSeatUnlock(orderId) {
	return request({
		url: '/sr/seatOrder/unlock/' + orderId,
		method: 'get'
	})
}